"""
    练习：发送请求的demo
"""
import requests

resp = requests.request(  # 1.构造请求 2.发送请求
    method="GET",
    url="https://beta-apis.wanxue.cn/base/v1/tag/year",
    headers={
        "a": "12",
        "forwardId": "70",
        "h": "wanxue",
        "p": "1",
        "u": "ffffffff-8d13-a56b-7169-0c980033c587",
        "v": "5020501"
    })
print(resp.json())
print(type(resp.json()))  # <class 'dict'>
